close all;
clear,clc;

%% 初始条件
Te=65;
l1=0.6/1000;l3=3.6/1000;% 四种材料厚度
l4=5.5/1000;
lam_1=0.082;lam_2=0.37;lam_3=0.045;lam_4=0.028;% 四种材料的热传导率
n=60*60;% 对时间分割
t=60*60;% 总时长
h_1 = 116.3024;
h_2 = 8.6635;
%% 二分法
left = 0.6;right = 25;
T=44;
for i = left:0.1:right
    u = General_Simulation(Te,i/1000,l4,h_1,h_2,t,n);
    temp = u(153,t-300);% 找到倒数的第5min
    if abs(temp-T)<(0.001)
        res = i; 
        break;
    end
end


